import VCrud from './VCrud/index.vue'
import VForm from './VForm/index.vue'
import { basePopupMixins } from './popupMixin/index'
import { formPopupMixin } from './popupMixin/formPopup'

const _module = {
  VCrud,
  VForm,
  basePopupMixins,
  formPopupMixin,
  install: function(Vue) {
    Vue.component('VCrud', VCrud)
    Vue.component('VForm', VForm)
  }
}

if (typeof window.Vue !== 'undefined') {
  window.Vue.use(_module)
  window.WjcEasyElementUI = _module
}

export {
  setControlSize,
  setTableProps,
  setPageSize,
  setTableColumnProps,
  setFieldsMap,
  setComponents,
  setQueryKeyMap,
  setDefaultAttrs
} from './default'
export default _module
